package com.zhz.company.contract.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 查询部门所有信息
 * @author zhouhengzhe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DepartmentFindAllResponse {


    @ApiModelProperty("企业ID")
    private String companyId;

    @ApiModelProperty("公司名称")
    private String companyName;

    @ApiModelProperty("公司联系人")
    private String companyManage;

    private List<DepartmentFindAllInfo> depts;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    @Accessors(chain = true)
    public static class DepartmentFindAllInfo{

        private String id;
        @ApiModelProperty("企业ID")
        private String companyId;

        @ApiModelProperty("父级部门ID")
        private String pid;

        @ApiModelProperty("部门名称")
        private String name;

        @ApiModelProperty("部门编码")
        private String code;

        @ApiModelProperty("部门负责人")
        private String manager;

        @ApiModelProperty("介绍")
        private String introduce;

        @ApiModelProperty("负责人ID")
        private String managerId;
    }
}
